package com.tensquare.qa.client;

import com.tensquare.entity.Result;
import com.tensquare.qa.client.impl.LabelClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by WF on 2020/12/23 15:20
 */
@FeignClient(value="tensquare-base",fallback = LabelClientImpl.class)
@Component
public interface LabelClient {
    @GetMapping("/label/{labelId}")
    Result findById(@PathVariable("labelId") String labelId);
}
